$(function () {
    var strLocation = window.location.href;
    const songID = strLocation.substring(strLocation.lastIndexOf("=") + 1);
    const API_URL = "http://39.98.85.248:3002/song/url?id=" + songID;
    $.ajax({
        type: "get",
        url: API_URL,
        data: "",
        dataType: "json",
        success: function (response) {
            console.log(response);
            $("audio").attr("src",response.data[0].url);
        }
    });
})